<?php
/* @var $this UsersController */
/* @var $model Users */
/* @var $form CActiveForm */
?>

<div class="grid-24">
  <div class="widget">
    <div class="widget-header">
      <span class="<?php if (sizeof($searchData) > 0) { ?>icon-minus-alt<?php } else { ?>icon-plus-alt<?php } ?>"
        id="search_icon" onclick="return commonFn.searchForm()"></span>
      <h3>
        <?php echo Yii::t('main', 'form.search'); ?>
      </h3>
    </div>
    <!-- .widget-header -->
    <div class="widget-content" style="<?php if (sizeof($searchData) == 0) { ?>display: none;<?php }; ?>" id="search_form">

      <?php $form=$this->beginWidget('CActiveForm', array(
          'action'=>Yii::app()->createUrl($this->route),
          'method'=>'get',
          'htmlOptions' => array('class' => 'form uniformForm validateForm'),
          )); ?>


      <div class="field-group">
        <?php echo $form->label($model,'Số điện thoại'); ?>
        <div class="field">
          <?php echo $form->textField($model,'mobile'); ?>
        </div>
      </div>
      <div class="field-group">
        <?php echo $form->label($model,'Mạng'); ?>
        <div class="field">
          <?php echo $form->textField($model,'network'); ?>
        </div>
      </div>
      <div class="field-group">
        <?php echo $form->label($model,'Số Serial'); ?>
        <div class="field">
          <?php echo $form->textField($model,'serial_num',array('size'=>60,'maxlength'=>128)); ?>
        </div>
      </div>

      <div class="field-group">
        <?php echo $form->label($model,'Mã lệnh'); ?>
        <div class="field">
          <?php echo $form->textField($model,'command',array('size'=>60,'maxlength'=>128)); ?>
        </div>
      </div>

      <div class="field-group">
        <?php echo $form->label($model,'Đầu số dịch vụ'); ?>
        <div class="field">
          <?php echo $form->textField($model,'switchboard',array('size'=>60,'maxlength'=>128)); ?>
        </div>
      </div>

      <div class="field-group">
        <button class="btn btn-primary btn-small" type="submit">
          <span class="icon-loop"></span>Tìm kiếm
        </button>
      </div>

      <?php $this->endWidget(); ?>

    </div>
  </div>
</div>
